package timing.ukulele.form.persistent;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import timing.ukulele.persistent.model.BaseIdWorkerModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(description = "表单模板")
@TableName("c_form_template")
public class FormTemplate extends BaseIdWorkerModel {
    @TableField("name_")
    @ApiModelProperty(value = "名称")
    private String name;
    @TableField("content_")
    @ApiModelProperty(value = "模板内容")
    private String content;
    @TableField("style_")
    @ApiModelProperty(value = "样式")
    private String style;
    @TableField("script_")
    @ApiModelProperty(value = "脚本")
    private String script;
    @TableField("code")
    @ApiModelProperty(value="编码")
    private String code;
    @TableField("version")
    @ApiModelProperty(value="版本号")
    private Integer version;
    @TableField("active")
    @ApiModelProperty(value = "是否可用：0-不可用，1-可用")
    private Integer active;
    @TableField("system_id")
    @ApiModelProperty(value = "所属业务系统ID")
    private Long systemId;

    @TableField("use_id")
    @ApiModelProperty(value="正在使用版本的id，0表示自身在使用")
    private Long useId;

    @TableField(exist = false)
    @ApiModelProperty(value = "业务系统名称")
    private String systemName;

    @TableField(exist = false)
    @ApiModelProperty(value = "业务系统配的申请表单模板的url")
    private String formUrl;

    @TableField(exist = false)
    @ApiModelProperty(value = "业务系统配的审批表单模板的url")
    private String appplyUrl;

    @TableField(exist = false)
    @ApiModelProperty(value = "流程图配的添加表单模板的url")
    private String flowUrl;

}
